oracle.pgx.api

## Class Partition<ID extends Comparable<ID>>

- java.lang.Object
- - oracle.pgx.api.Destroyable
  - - oracle.pgx.api.Partition<ID>

- Type Parameters:
    `ID` - the ID type of the vertices
  All Implemented Interfaces:
    AutoCloseable, Iterable<VertexCollection<ID>>

      public class Partition<ID extends Comparable<ID>>
      extends Destroyable
      implements Iterable<VertexCollection<ID>>

  A vertex partition of a graph.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `PgxGraph` | `getGraph()`
    `VertexCollection<ID>` | `getPartitionByIndex(int index)`
    `VertexCollection<ID>` | `getPartitionByVertex(PgxVertex<ID> vertex)`
    `int` | `getPartitionIndexOfVertex(PgxVertex<ID> vertex)`
    `Iterator<VertexCollection<ID>>` | `iterator()`
    `int` | `size()`
    `String` | `toString()`

    - ### Methods inherited from class oracle.pgx.api.Destroyable

      `close, destroy, destroyAsync`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### getGraph

          public PgxGraph getGraph()

    - #### getPartitionByIndex

          public VertexCollection<ID> getPartitionByIndex(int index)

    - #### getPartitionByVertex

          public VertexCollection<ID> getPartitionByVertex(PgxVertex<ID> vertex)

    - #### getPartitionIndexOfVertex

          public int getPartitionIndexOfVertex(PgxVertex<ID> vertex)

    - #### iterator

          public Iterator<VertexCollection<ID>> iterator()

      Specified by:
        `iterator` in interface `Iterable<VertexCollection<ID extends Comparable<ID>>>`

    - #### size

          public int size()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2015. All rights reserved.